//
//  NSObject+ViewController.m
//  继承与NSObject的类
//
//  Created by mac on 16/4/25.
//  Copyright © 2016年 贝尔特伦. All rights reserved.
//

#import "NSObject+ViewController.h"

@implementation NSObject (ViewController)

- (UIViewController *)ViewController{
    
    UIViewController *viewC = [[[UIApplication sharedApplication] keyWindow] rootViewController];
    
    return viewC;
}




@end
